package factoryModel.factoryMethod;

/**
 * @author 帅小伙
 * @date 2021/12/29
 * @description
 */
public abstract class  PizzaStore {

    abstract  Pizza createPizza(String type);


    public void orderPizza(String type){
        Pizza pizza = createPizza(type);
        System.out.println("pizza被生产出来了"+pizza);
        System.out.println("对Pizza进行各种操作");
    }
}
